onEvent('recipes', event => {


    //感应炉
    let smelterRecipes = [
        {
            output: '6x refinedstorage:quartz_enriched_iron',
            input: ['#forge:ingots/steel', 'create:polished_rose_quartz', '12x #refinedstorage:silicon'],
            energy: 2000
        },
        {
            output: '4x emendatusenigmatica:steel_ingot',
            input: ['4x #forge:ingots/invar', '#forge:dusts/coal_coke'],
            energy: 1000
        },
        {
            output: 'refinedstorage:raw_advanced_processor',
            input: ['6x immersiveengineering:wire_steel', '2x emendatusenigmatica:enderium_nugget', 'refinedstorage:processor_binding'],
            energy: 2000
        },
        {
            output: 'refinedstorage:raw_basic_processor',
            input: ['6x immersiveengineering:wire_aluminum', '2x emendatusenigmatica:invar_nugget', 'refinedstorage:processor_binding'],
            energy: 2000
        },
        {
            output: 'refinedstorage:raw_improved_processor',
            input: ['6x immersiveengineering:wire_electrum', '2x emendatusenigmatica:lumium_nugget', 'refinedstorage:processor_binding'],
            energy: 2000
        },
        {
            output: '3x thermal:rubber',
            input: ['2x #forge:dusts/sulfur', 'pneumaticcraft:plastic'],
            energy: 2000
        },
        {
            output: 'extrastorage:raw_neural_processor',
            input: ['pneumaticcraft:printed_circuit_board', '2x pneumaticcraft:network_data_storage', '2x pneumaticcraft:network_io_port'],
            energy: 2000
        },
        {
            output: '3x emendatusenigmatica:signalum_ingot',
            input: ['2x tconstruct:tinkers_bronze_ingot', '6x minecraft:redstone', '3x emendatusenigmatica:silver_ingot'],
            energy: 2000
        },
        {
            output: '6x kubejs:coarse_crystal_ingot',
            input: ['2x kubejs:polluted_dirt', '3x #quark:crystal'],
            energy: 2000
        },
        {
            output: '4x create:andesite_alloy',
            input: ['minecraft:iron_ingot', '4x kubejs:polluted_dust'],
            energy: 2000
        },
        {
            output: '3x emendatusenigmatica:enderium_ingot',
            input: ['2x minecraft:ender_pearl','5x #forge:ingots/lead','emendatusenigmatica:iridium_ingot'],
            energy: 2000
        },
        {
            output: '2x kubejs:post_radionin_2',
            input: ['3x kubejs:post_radionin_1','5x #forge:dusts/sulfur','pneumaticcraft:bandage'],
            energy: 20000
        },
        {
            output: '8x refinedstorage:quartz_enriched_iron',
            input: ['create:polished_rose_quartz', 'botania:terrasteel_ingot', 'projectred-core:infused_silicon'],
            energy: 2000
        },
        {
            output: '4x emendatusenigmatica:steel_ingot',
            input: ['4x #forge:ingots/invar', 'forbidden_arcanus:corrupti_dust'],
            energy: 1000
        },
        {
            output: 'thermal_extra:vukaium_ingot',
            input: ['emendatusenigmatica:aluminum_ingot', '6x betternether:bone_mushroom'],
            energy: 1000
        },
        {
            output: 'thermal_extra:dragon_bronze_ingot',
            input: ['emendatusenigmatica:bronze_ingot', '6x betternether:agave'],
            energy: 1000
        },
        {
            output: '2x thermal_extra:nebulium_ingot',
            input: ['3x bloodmagic:corrupted_dust','2x bloodmagic:weakbloodshard'],
            energy: 20000
        },
        {
            output : 'projectred-core:copper_coil',
            input : ['6x immersiveengineering:wirecoil_copper','2x thermal:cured_rubber','emendatusenigmatica:aluminum_rod'],
            energy : 20000
        },
        {
            output : '6x kubejs:soldering_tin_ingot',
            input:['kubejs:stibium_dust','4x emendatusenigmatica:tin_ingot'],
            energy : 20000
        },
        {
            output : 'thermal:upgrade_augment_2',
            input : ['thermal:upgrade_augment_1','3x emendatusenigmatica:lumium_gear','immersiveengineering:logic_circuit'],
            energy : 40000
        },
        {
            output : 'thermal:upgrade_augment_2',
            input : ['thermal:upgrade_augment_1','3x emendatusenigmatica:lumium_gear','2x botania:corporea_index'],
            energy : 40000
        },
        {
            output : 'mekanism:ultimate_induction_provider',
            input : ['mekanism:elite_induction_provider','16x draconicevolution:draconium_block','mekanism:ultimate_control_circuit'],
            energy : 400000
        },
        {
            output : 'mekanism:ultimate_induction_cell',
            input : ['mekanism:elite_induction_cell','16x draconicevolution:draconium_block','mekanism:ultimate_control_circuit'],
            energy : 400000
        },
        {
            output : 'thermal:upgrade_augment_3',
            input : ['4x emendatusenigmatica:enderium_gear','thermal:upgrade_augment_2','mekanism:advanced_control_circuit'],
            energy : 40000
        },
        {
            output : 'mekanism:basic_induction_cell',
            input : ['fluxnetworks:flux_block','mekanism:energy_tablet','4x mekanism:basic_control_circuit'],
            energy : 40000
        },
        {
            output : 'mekanism:basic_induction_provider',
            input : ['2x draconicevolution:energy_pylon','mekanism:energy_tablet','4x mekanism:basic_control_circuit'],
            energy : 40000
        },
        {
            output : 'mekanism:advanced_induction_cell',
            input : ['2x fluxnetworks:flux_block','2x mekanism:basic_induction_cell','4x mekanism:advanced_control_circuit'],
            energy : 40000
        },
        {
            output : 'mekanism:advanced_induction_provider',
            input : ['4x draconicevolution:energy_pylon','2x mekanism:basic_induction_provider','4x mekanism:advanced_control_circuit'],
            energy : 40000
        },

        {
            output : 'mekanism:elite_induction_cell',
            input : ['3x fluxnetworks:flux_block','2x mekanism:advanced_induction_cell','4x mekanism:elite_control_circuit'],
            energy : 40000
        },
        {
            output : 'mekanism:elite_induction_provider',
            input : ['6x draconicevolution:energy_pylon','2x mekanism:advanced_induction_provider','4x mekanism:elite_control_circuit'],
            energy : 40000
        },
        {
            output : 'minecraft:dragon_breath',
            input : [Item.of('minecraft:potion', '{Potion:"minecraft:water"}'),'mekanismmatter:universal_matter'],
            energy : 4000
        }




        //'mekanism:advanced_induction_cell'
        //'mekanism:elite_induction_cell'
        //'2x mekanism:basic_induction_provider'
    ];


    //冲压
    let pressRecipes = [
        {
            output: 'refinedstorage:improved_processor',
            input: 'refinedstorage:raw_improved_processor',
            mat: 'thermal:press_coin_die'
        },
        {
            output: 'refinedstorage:basic_processor',
            input: 'refinedstorage:raw_basic_processor',
            mat: 'thermal:press_coin_die'
        },
        {
            output: 'refinedstorage:advanced_processor',
            input: 'refinedstorage:raw_advanced_processor',
            mat: 'thermal:press_coin_die'
        },
        {
            input: 'extrastorage:raw_neural_processor',
            output: 'extrastorage:neural_processor',
            mat: 'thermal:press_coin_die'
        },
        {
            input: 'create:rose_quartz',
            output: 'create:polished_rose_quartz',
            mat: 'thermal:press_coin_die'
        },
        {
            input: '4x kubejs:polluted_dust',
            output: 'kubejs:polluted_dirt',
            mat: 'thermal:press_packing_2x2_die'
        },
        {
            input: '#forge:treated_wood',
            output: '4x immersiveengineering:stick_treated',
            mat: 'immersiveengineering:mold_rod'
        }
    ];

    //离心机
    let centrifugeRecipes = [
        {
            output: ['2x emendatusenigmatica:lapis_chunk'],
            input: 'quark:indigo_crystal',
        },
        {
            output: ['2x emendatusenigmatica:diamond_chunk', 'tconstruct:sky_slime_ball'],
            input: 'quark:blue_crystal',
        },
        {
            output: ['2x emendatusenigmatica:emerald_chunk'],
            input: 'quark:green_crystal',
        },
        {
            output: ['minecraft:glowstone'],
            input: 'quark:yellow_crystal',
        },
        {
            output: ['2x emendatusenigmatica:copper_chunk', 'tconstruct:ichor_slime_ball'],
            input: 'quark:orange_crystal',
        },
        {
            output: ['2x emendatusenigmatica:redstone_chunk', 'tconstruct:blood_slime_ball'],
            input: 'quark:red_crystal',
        },
        {
            output: ['2x emendatusenigmatica:coal_chunk'],
            input: 'quark:black_crystal',
        },
        {
            output: ['2x emendatusenigmatica:iron_chunk'],
            input: 'quark:white_crystal',
        },
        {
            output: [Item.of('minecraft:sugar').withChance(0.5)],
            input: 'minecraft:carrot',
        },
        {
            output: [Item.of('minecraft:sugar').withChance(0.5)],
            input: 'minecraft:potato',
        },
        {
            output: ['5x minecraft:quartz', '5x minecraft:blaze_powder'],
            input: 'minecraft:netherrack'
        },
        {
            output: ['pneumaticcraft:glycerol'],
            input: 'thermal:bitumen'
        }


    ];

    //磨粉机
    var pulverizerRecipes = [
        {
            output: 'immersiveengineering:dust_coke',
            input: '#forge:coal_coke',
        },
        {
            output: 'refinedstorage:silicon',
            input: 'minecraft:sand',
        },
        {
            output: 'mekanism:dust_obsidian',
            input: 'minecraft:obsidian',
        },
        {
            input: 'mekanism:quantum_entangloporter',
            output : '5x fluxnetworks:flux_dust'
        },
        {
            input: 'minecraft:end_stone',
            output : 'emendatusenigmatica:iridium_dust'
        }
    ];

    var bottlerRecipes = [
        {
            output: 'kubejs:plastic_steel_ingot',
            input: [Fluid.of('pneumaticcraft:plastic', 2000), 'emendatusenigmatica:steel_ingot'],
            energy: 50000
        },
        {
            output: 'draconicevolution:wyvern_energy_core',
            input: [Fluid.of('thermal:redstone', 8000), 'draconicevolution:draconium_core'],
            energy: 50000
        },
        {
            output: Item.of('tiab:timeinabottle', '{timeData:{storedTime:114514}}'),
            input: [Fluid.of('tconstruct:molten_lumium', 24000), 'tiab:timeinabottle'],
            energy: 100000
        },
        {
            output: 'minecraft:end_stone',
            input: [Fluid.of('tconstruct:molten_ender', 250), 'minecraft:sandstone'],
            energy: 100
        },
        {
            output: 'pneumaticcraft:reinforced_stone',
            input: [Fluid.of('tconstruct:molten_invar', 36), 'minecraft:smooth_stone'],
            energy: 100
        },
        {
            output: 'projectred-core:draw_plate',
            input: [Fluid.of('kubejs:soldering_tin', 144), 'emendatusenigmatica:iridium_plate'],
            energy: 1000
        },
        {
            output: '8x projectred-core:plate',
            input: [Fluid.of('pneumaticcraft:plastic', 555), 'emendatusenigmatica:signalum_plate'],
            energy: 1000
        },
        {
            output: 'projectred-core:gold_coil',
            input: [Fluid.of('tconstruct:molten_electrum', 288), 'projectred-core:copper_coil'],
            energy: 1000
        },
        


        
        

        
    ];

    

    //感应炉
    smelterRecipes.forEach((i) => {
        event.recipes.thermal.smelter(i.output, i.input).energy(i.energy);
    });
    //event.recipes.thermal.smelter('minecraft:gold_ingot', ['minecraft:iron_ingot', 'minecraft:copper_ingot']).energy(10000);

    //冲压
    pressRecipes.forEach((i) => {
        event.recipes.thermal.press(i.output, [i.input, i.mat]);
    });
    //event.recipes.thermal.press('minecraft:iron_nugget', ['#forge:dusts/iron', 'thermal:press_coin_die']);

    //离心机
    centrifugeRecipes.forEach((i) => {
        event.recipes.thermal.centrifuge(i.output, i.input);
    });

    pulverizerRecipes.forEach((i) => {
        event.recipes.thermal.pulverizer(i.output, i.input);
    });


    bottlerRecipes.forEach((i) => {
        event.recipes.thermal.bottler(i.output, i.input);
    });

    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_glass', 1000), '#forge:glass');


    let color = [
        'indigo',
        'blue',
        'green',
        'yellow',
        'orange',
        'red',
        'black',
        'white',
        'violet'
    ];

    color.forEach((i) => {
        event.recipes.thermal.insolator(
            [`12x quark:${i}_crystal`], [Fluid.of('minecraft:water', 1000), `quark:${i}_crystal`]);
    });

    event.recipes.thermal.insolator(
        ['minecraft:oak_sapling', '6x minecraft:oak_log', '32x minecraft:oak_leaves', 'minecraft:apple'], [Fluid.of('minecraft:water', 1000), 'minecraft:oak_sapling']);

    //event.recipes.thermal.pulverizer(Item.of('minecraft:iron_nugget').withChance(1.1), 'minecraft:flint')


    event.recipes.thermal.refinery(
        [Item.of('thermal:sulfur_dust').withChance(0.7), Fluid.of('thermal:refined_fuel', 200)],
        Fluid.of('thermal:light_oil', 200));

    event.recipes.thermal.refinery(
        [Item.of('thermal:tar').withChance(0.7), Fluid.of('thermal:refined_fuel', 200)],
        Fluid.of('thermal:heavy_oil', 200));




    event.recipes.thermal.crucible(Fluid.of('kubejs:chaotic_liquid', 10), 'draconicevolution:small_chaos_frag');
    event.recipes.thermal.crucible(Fluid.of('kubejs:chaotic_liquid', 90), 'draconicevolution:medium_chaos_frag');
    event.recipes.thermal.crucible(Fluid.of('kubejs:chaotic_liquid', 270), 'draconicevolution:large_chaos_frag');
    //event.recipes.thermal.crucible(Fluid.of('kubejs:chaotic_liquid', 2430), 'draconicevolution:chaos_shard');

    event.recipes.thermal.crucible(Fluid.of('tconstruct:blazing_blood', 100), 'minecraft:blaze_powder').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_emerald', 144), 'minecraft:emerald').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_enderium', 144), '#forge:ingots/enderium').energy(1000);
    
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_lumium', 144), '#forge:ingots/lumium').energy(1000);

    event.recipes.thermal.crucible(Fluid.of('thermal:redstone', 900), 'minecraft:redstone_block').energy(9000);
    event.recipes.thermal.crucible(Fluid.of('thermal:redstone', 100), 'minecraft:redstone').energy(1000);

    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_ender', 250), 'minecraft:ender_pearl').energy(1000);

    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_invar', 144), '#forge:ingots/invar').energy(1000);
    
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_diamond', 144), 'minecraft:diamond').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_emerald', 144), 'minecraft:emerald').energy(1000);


    event.recipes.thermal.crucible(Fluid.of('kubejs:soldering_tin', 144), 'kubejs:soldering_tin_ingot').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_electrum', 144), 'emendatusenigmatica:electrum_ingot').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('mob_grinding_utils:fluid_xp', 60), 'ars_nouveau:experience_gem').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_uranium', 144), 'emendatusenigmatica:uranium_dust').energy(1000);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_uranium', 144), 'emendatusenigmatica:uranium_ingot').energy(100);
    event.recipes.thermal.crucible(Fluid.of('tconstruct:molten_uranium', 1000), 'mekanism:crystal_uranium').energy(10000);


    event.recipes.thermal.crucible(Fluid.of('tconstruct:blood', 50), 'minecraft:rotten_flesh').energy(10000);


    event.recipes.thermal.sawmill('projectred-core:silicon', 'projectred-core:boule').energy(1000)
    

    // event.custom({
    //     "type":"thermal:rock_gen",
    //     "adjacent":"astralsorcery:liquid_starlight",
    //     "below":"emendatusenigmatica:iridium_block",
    //     "result":{"item":'astralsorcery:marble_raw'},
    //     "outputs":[{"item":'astralsorcery:marble_raw',"count":1}]
    // });

    //event.recipes.thermal.insolator(['atum:palm_sapling','atum:palm_log','atum:palm_leaves'],[Fluid.of('minecraft:water', 1000),'atum:palm_sapling'])
});